package com.ruoyi.mappers;

import com.ruoyi.vo.DataGrowthVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DataStatisticsMapper {

    /**
    * @Description:获取用户某月的新增数据
    * @Param:
    * @Return:
    */
    List<DataGrowthVo> getUserDataGrowth(@Param("year") String year,@Param("month") String month,@Param("table") String table );


    /**
     * @Description:获取某月的平台盈利
     * @Param:
     * @Return:
     */
    List<DataGrowthVo> getMonthlyProfit(@Param("year") String year,@Param("month") String month);

    /**
     * @Description:获取某年的平台盈利
     * @Param:
     * @Return:
     */
    List<DataGrowthVo> getAnnualProfit(String year);


    /**
     * @Description:获取某周的订单量
     * @Param:
     * @Return:
     */
    List<DataGrowthVo> getWeeklyOrder(@Param("startOfWeek") String startOfWeek,@Param("endOfWeek")  String endOfWeek);
    /**
     * @Description:获取某月的订单量
     * @Param:
     * @Return:
     */
    List<DataGrowthVo> getMonthlyOrder(@Param("year") String year,@Param("month") String month);


    /**
     * @Description:获取某年的订单量
     * @Param:
     * @Return:
     */
    List<DataGrowthVo> getAnnualOrder(String year);
}
